import request from '@/utils/request'

// 查询职业锚测试题列表
export function listCareeranchor(query) {
  return request({
    url: '/mentalTest/careeranchor/list',
    method: 'get',
    params: query
  })
}

// 查询职业锚测试题详细
export function getCareeranchor(id) {
  return request({
    url: '/mentalTest/careeranchor/' + id,
    method: 'get'
  })
}

// 新增职业锚测试题
export function addCareeranchor(data) {
  return request({
    url: '/mentalTest/careeranchor',
    method: 'post',
    data: data
  })
}

// 修改职业锚测试题
export function updateCareeranchor(data) {
  return request({
    url: '/mentalTest/careeranchor',
    method: 'put',
    data: data
  })
}

// 删除职业锚测试题
export function delCareeranchor(id) {
  return request({
    url: '/mentalTest/careeranchor/' + id,
    method: 'delete'
  })
}
